﻿
namespace TotalSystems.DataAccess
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data.Objects.DataClasses;
    using System.Linq;
    //using TotalSystems.DataAccess.CustomAttributes;
    //using System.ServiceModel.DomainServices.Hosting;
    //using System.ServiceModel.DomainServices.Server;
     

    // The MetadataTypeAttribute identifies STR_DegreeImportantStuffMetadata as the class
    // that carries additional metadata for the STR_DegreeImportantStuff class.
    [MetadataTypeAttribute(typeof(STR_DegreeImportantStuff.STR_DegreeImportantStuffMetadata))]
    public partial class STR_DegreeImportantStuff
    {

        // This class allows you to attach custom attributes to properties
        // of the STR_DegreeImportantStuff class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class STR_DegreeImportantStuffMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private STR_DegreeImportantStuffMetadata()
            {
            }
            [Display(AutoGenerateField = false)]
            public short ACC_Fy_ID_fk { get; set; }

            [Display(AutoGenerateField = false)]
            public int PUB_User_ID_fk { get; set; }

            [Display(Name = "فعال")]
            public bool STR_Dis_Active { get; set; }

            [Display(AutoGenerateField = false)]
            public DateTime STR_Dis_DeleteDate { get; set; }

            [ReadOnly(true)]
            [Display(Name="درجه اهمیت کالا")]
            public long STR_Dis_ID { get; set; }

            [Display(Name = "باز شده:")]
            public bool STR_Dis_IsExpand { get; set; }

            [Display(Name = "تاریخ ویرایش:")]
            [ReadOnly(true)]
            [Editable(true,AllowInitialValue=true)]
            public DateTime STR_Dis_ModifyDate { get; set; }

            [Display(Name = "نام درجه اهمیت کالا")]
            public string STR_Dis_Name { get; set; }

            [Display(Name = "توضیحات")]
            public string STR_Dis_Note { get; set; }

            [Display(Name = "کد والد")]
            public Nullable<long> STR_Dis_Parent_ID_fk { get; set; }

            [Display(AutoGenerateField=false)]
            public string STR_Dis_Temp { get; set; }

            public Nullable<short> STR_Dis_Type { get; set; }

            public EntityCollection<STR_Stuff> STR_Stuff { get; set; }
        }
    }
}
